home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10277 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  665 b 

  1. Path: nyx.cs.du.edu!not-for-mail
  2. From: fmerrow@nyx.cs.du.edu (Frank Merrow)
  3. Newsgroups: comp.lang.c++
  4. Subject: How to I set cin/cout for Binary Mode?
  5. Date: 6 Mar 1996 16:46:33 -0700
  6. Organization: /usr/lib/news/organi[sz]ation
  7. Distribution: na
  8. Message-ID: <4hl84p$88p@nyx.cs.du.edu>
  9. NNTP-Posting-Host: nyx.nyx.net
  10.  
  11. Hi,
  12.  
  13. I have just written my first C++ program to copy cin to cout.  (Well
  14. actually I took it from Stroustrup.)  The problem is that the output file
  15. is not the same size as the input file if I pipe a binary file through.
  16. In "C" I would just set the "binary" flag, but I don't see an equivalent
  17. in iostream.h.
  18.  
  19. Where is it and what is it called?
  20.  
  21. Frank
  22.